//
//  MuitipleIPCell.m
//  Estate
//
//  Created by heyong on 2017/4/1.
//  Copyright © 2017年 ttsx. All rights reserved.
//

#import "MuitipleIPCell.h"

@implementation MuitipleIPCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.ipTextLab.textColor = subtitleColor;
    self.ipDetailLab.textColor=UIColorFromRGB(0x999999);
    self.selectionStyle=UITableViewCellSelectionStyleNone;
    self.accessoryType=UITableViewCellAccessoryDisclosureIndicator;
}

//设置分割线
- (void)drawRect:(CGRect)rect
{
    CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetFillColorWithColor(context, [UIColor clearColor].CGColor); CGContextFillRect(context, rect);
    //下分割线
    CGContextSetStrokeColorWithColor(context,[UIColor colorWithRed:0.88 green:0.89 blue:0.89 alpha:1.00].CGColor); CGContextStrokeRect(context, CGRectMake(0, rect.size.height, rect.size.width , 1));
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}

- (IBAction)clickSel:(UIButton *)sender {
    if(self.selBlick){
        self.selBlick();
    }
}
@end
